class Admin::SessionsController < Admin::ApplicationController
  before_action :set_admin_session, only: [:show, :edit, :update, :destroy]

  # GET /admin/sessions
  # GET /admin/sessions.json
  def index
  end

  

  # POST /admin/sessions
  # POST /admin/sessions.json
  def create
    @admin_session = Admin::Session.new(admin_session_params)

    respond_to do |format|
      if @admin_session.save
        format.html { redirect_to @admin_session, notice: 'Session was successfully created.' }
        format.json { render :show, status: :created, location: @admin_session }
      else
        format.html { render :new }
        format.json { render json: @admin_session.errors, status: :unprocessable_entity }
      end
    end
  end

  private
    # Use callbacks to share common setup or constraints between actions.
    def set_admin_session
      @admin_session = Admin::Session.find(params[:id])
    end

    # Never trust parameters from the scary internet, only allow the white list through.
    def admin_session_params
      params[:admin_session]
    end
end
